<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="<?php echo Router::getBaseUrl();?>/lib/html5shiv.js"></script>
<script type="text/javascript" src="<?php echo Router::getBaseUrl();?>/lib/respond.min.js"></script>
<![endif]-->
<link href="<?php echo Router::getBaseUrl();?>/static/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="<?php echo Router::getBaseUrl();?>/static/h-ui.admin/css/H-ui.login.css" rel="stylesheet" type="text/css" />
<link href="<?php echo Router::getBaseUrl();?>/static/h-ui.admin/css/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo Router::getBaseUrl();?>/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="<?php echo Router::getBaseUrl();?>/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>后台登录 万小程</title>
<meta name="keywords" content="">
<meta name="description" content="">
</head>
<body>
<div class="loginWraper">
  <div id="loginform" class="loginBox hui-bounceinB">
    <h3>万小程</h3>
        <form class="form form-horizontal" method="post">
          <div class="row cl">
            <div class="formControls col-xs-8 col-xs-offset-2">
              <input name="name" type="text" placeholder="账号" class="input-text size-L">
            </div>
          </div>
          <div class="row cl">
            <div class="formControls col-xs-8 col-xs-offset-2">
              <input name="password" type="password" placeholder="密码" class="input-text size-L">
            </div>
          </div>

          <div class="row cl">
            <div class="formControls col-xs-8 col-xs-offset-2 text-l">
                  <input type="checkbox" name="online" id="online" value="" checked="checked">
                使我保持登录状态
            </div>
          </div>
          <div class="row cl">
            <div class="formControls col-xs-8 col-xs-offset-2">
                <input id="j_submit" type="button" class="btn btn-block btn-warning radius size-L" value="&nbsp;登&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;">
            </div>
          </div>
        </form>
  </div>
</div>
<script type="text/javascript" src="<?php echo Router::getBaseUrl();?>/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="<?php echo Router::getBaseUrl();?>/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript">
$(function(){
    $('#j_submit').click(function(){
        $.post('<?php echo Router::getBaseUrl();?>/admin_index/login', $('form').serialize(), function (res, b) {
            if (res.status == 200) {
                window.location.href = res.data.url;
                return true;
            }else{
                $.Huimodalalert(res.msg,2000)
            }
        }, 'json');
        return;
    });
    var reloadCode = function(){
        var that = $('#j_captcha');
        that.attr('src', that.attr('src')+'?'+Math.random());
    }
    $('#j_captcha,#j_refresh').click(reloadCode);
})
</script>
</body>
</html>